{template "header.html", "/"}

<div class="page-container">
    <div class="page-content-wrapper">

        <div class="page-content">
            <div class="container">

                <ul class="page-breadcrumb breadcrumb">
                    <li><a href="{SITE_URL}">首页</a><i class="fa fa-angle-right"></i></li>
                    <li> <span>找回密码</span></li>
                </ul>


                <div class="news-content row">

                    <div class="col-md-offset-4 col-md-4">

                        <!-- BEGIN LOGIN FORM -->
                        <form class="login-form" action="" method="post">
                            <input name="uid" type="hidden" value="{$uid}" />
                            <input name="step" type="hidden" value="{$step}" />
                            <h3 class="form-title ">找回密码</h3>
                            {if $step == 1}
                            <p>1、输入注册邮箱或手机号码 </p>

                            {if $error}
                            <div class="alert alert-danger">
                                <button class="close" data-close="alert"></button>
                                <span>{$error}</span>
                            </div>
                            {/if}
                            <div class="form-group">
                                <div class="row">
                                    <div class="col-sm-4">
                                        <select name="name" class="form-control valid">
                                            <option {if $_POST['name']=='email'}selected{/if} value="email">注册邮箱</option>
                                            {if $mobile}<option {if $_POST['name']=='phone'}selected{/if} value="phone">手机号码</option>{/if}
                                        </select>
                                    </div>
                                    <div class="col-sm-8">
                                        <input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="" name="value" />
                                    </div>
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: 10px">
                                <div class="row">
                                    <div class="col-sm-6">
                                        <input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="验证码" name="code" />
                                    </div>
                                    <div class="col-sm-6">
                                        <img align="absmiddle" style="cursor:pointer;" onclick="this.src='{dr_member_url('api/captcha', array('width' => 120, 'height' => 40))}&'+Math.random();" src="{dr_member_url('api/captcha', array('width' => 120, 'height' => 40))}" />
                                    </div>
                                </div>
                            </div>
                            <div class="form-actions">
                                <button type="submit" class="btn green uppercase">下一步</button>
                                <a href="{dr_member_url('login/index')}" class="forget-password">立即登录</a>
                            </div>
                            {else if $step == 2}
                            <p>2、接收验证码重新设置密码 </p>

                            {if $error}
                            <div class="alert alert-danger">
                                <button class="close" data-close="alert"></button>
                                <span>{$error}</span>
                            </div>
                            {/if}
                            <div class="form-group">
                                <label class="control-label visible-ie8 visible-ie9">验证凭证</label>
                                <input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="验证凭证" name="code" />
                            </div>
                            <div class="form-group">
                                <label class="control-label visible-ie8 visible-ie9">重置密码</label>
                                <input class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off" placeholder="重置密码" name="password" />
                            </div>
                            <div class="form-group">
                                <label class="control-label visible-ie8 visible-ie9">确认密码</label>
                                <input class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off" placeholder="确认密码" name="password2" />
                            </div>
                            <div class="form-group" style="margin-top: 10px">
                                <div class="row">
                                    <div class="col-sm-6">
                                        <input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="验证码" name="code2" />
                                    </div>
                                    <div class="col-sm-6">
                                        <img align="absmiddle" style="cursor:pointer;" onclick="this.src='{dr_member_url('api/captcha', array('width' => 120, 'height' => 40))}&'+Math.random();" src="{dr_member_url('api/captcha', array('width' => 120, 'height' => 40))}" />
                                    </div>
                                </div>
                            </div>
                            <div class="form-actions">
                                <button type="submit" class="btn green uppercase">重置密码</button>
                                <a href="{dr_member_url('login/index')}" class="forget-password">立即登录</a>
                            </div>
                            {/if}
                            <div class="create-account">
                                <p>
                                    <a href="{dr_member_url('register/index')}" id="register-btn" class="uppercase">注册账号</a>
                                </p>
                            </div>
                        </form>
                        <!-- END LOGIN FORM -->

                    </div>



                </div>

            </div>
        </div>

    </div>

</div>


{template "footer.html", "/"}